

package top.continew.admin.controller.question;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.continew.admin.question.manger.service.AreaService;
import top.continew.starter.log.annotation.Log;
import top.continew.starter.web.model.R;

@Log(module = "地区")
@Tag(name = "地区 API")
@RestController
@RequestMapping("area")
public class AreaController {

    private AreaService areaService;

    public AreaController(AreaService areaService) {
        this.areaService = areaService;
    }

    @GetMapping
    public R getArea() throws Exception {
        return R.ok(areaService.getArea());
    }
}
